
#ifndef HPSCCLIENT_H
#define HPSCCLIENT_H

#include <QtNetwork/QTcpSocket>
#include <QtDebug>
#include "gssglobals.h"
#include "hpsc.h"



/**
HPSCClient class

	@author Archimedes Projekt <thelsb@gmail.com>
*/

class HPSCClient : public QTcpSocket
{
    Q_OBJECT
private:
    CHPSC *m_hpsc;
public:
    HPSCClient(QObject *parent = 0);

    ~HPSCClient();

    void sendError();
    
public slots:
    void getCommand();
	void getHpscError(int src,quint8 err);
    void hpscReadout(int src,float volt,float amper);
    void hpscReadoutA(int src, float amper);
    void hpscReadoutV(int src, float volt);
    
};

#endif
